package com.ac.api.userinfo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.ac.api.userinfo.entity.AcUserinfo;
import com.ac.api.userinfo.dao.AcUserinfoMapper;
import com.ac.api.userinfo.service.AcUserinfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lyj
 * @since 2025-03-14
 */
@Service
public class AcUserinfoServiceImpl extends ServiceImpl<AcUserinfoMapper, AcUserinfo> implements AcUserinfoService {

    @Override
    public List<AcUserinfo> list(AcUserinfo example) {
        return this.list(buildWrapper(example));
    }

    @Override
    public IPage<AcUserinfo> page(AcUserinfo example, IPage page) {
        return this.page(page,buildWrapper(example));
    }

    /**
     * 构建查询
     *
     * @param example
     * @return
     */
    private QueryWrapper<AcUserinfo> buildWrapper(AcUserinfo example) {
        QueryWrapper<AcUserinfo> wrapper     = new QueryWrapper<>();
        return wrapper;
    }

}
